<%@page import="com.mmy.domain.plane.TPlaneBase"%>
<%@page import="com.mmy.domain.plane.TPlaneOrder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>机票信息</title>
</head>
<body>
	
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>机票信息</h2>			
		</div>
	</header>
	<section class="container">
	

			<div>
				<a href="planeorg" >航空公司</a> | 
				<a href="planeplan" >航班时刻</a> | 
				<a href="planebase" >航班信息</a> | 
				<a href="planeairport" >机场信息</a> 
				
				<!-- 机票预留信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchreserveplanebase" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>机票预留信息管理
						</h4>
				<div >
				
				<input type="button" value="修改" class="btn at-float-right" onclick="updateReservePlaneBase()"> 
				<input type="button" class="btn at-float-right" value="转订单" onclick="payOrderPlane()">
				<input type="button" class="btn at-float-right" value="取消预留" onclick="cancelReservePlane()">
				<table class="info-table" >
					<tr>
						<th>
						<input type="hidden"  name="PlaneID" value="${iPlaneID }">
							<input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">
						</th>
						<th>预留人姓名</th>
						<th>预留联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 0}">
						<td>
							<input type="checkbox" name="ckone" value="${ol.getID()}" onclick="ckOne(this)">
						</td>
						<td>${ol.getReserveName()}</td>
						<td>${ol.getReserveTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
				
				
				<!-- 机票已收款订单信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchorderplanebase" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>机票已收款订单信息管理
						</h4>
				<div >
				
				<input type="button" value="修改" class="btn at-float-right" onclick="updateOrderPlaneBase()"> 
				<input type="button" class="btn at-float-right" value="退款" onclick="cancelOrderPlane()">
				
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall1" name="ckall1" onclick="ckAll1(this);">
						</th>
						<th>订单人姓名</th>
						<th>订单联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 2}">
						<td>
							<input type="checkbox" name="ckone1" value="${ol.getID()}" onclick="ckOne1(this)">
						</td>
						<td><a href = "orderplaneinfo?iID=${ol.getID()}">${ol.getOrderName()}</a> </td>
						<td>${ol.getOrderTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
				
				
				
				
				<!-- 机票取消预留信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchdelreserveplane" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>机票取消预留信息管理
						</h4>
				<div >
				
				<input type="button" value="删除" class="btn at-float-right" onclick="delReservePlaneBase()"> 
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall3" name="ckall3" onclick="ckAll3(this);">
						</th>
						<th>预留人姓名</th>
						<th>预留联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 3}">
						<td>
							<input type="checkbox" name="ckone3" value="${ol.getID()}" onclick="ckOne3(this)">
						</td>
						<td>${ol.getReserveName()}</td>
						<td>${ol.getReserveTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
				
				
				
				<!-- 机票退款订单信息 -->
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
			
				
				<form action="searchdelorderplane" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>机票取消订单信息管理
						</h4>
				<div >
				
				<input type="button" value="删除" class="btn at-float-right" onclick="delOrderPlaneBase()"> 
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall4" name="ckall4" onclick="ckAll4(this);">
						</th>
						<th>订单人姓名</th>
						<th>订单联系方式</th>
						<th>备注</th>			
					
					</tr>
					<c:forEach var="ol" items="${orderlist}">
					
					<tr>
						<c:if test="${ol.getOrderState() == 4}">
						<td>
							<input type="checkbox" name="ckone4" value="${ol.getID()}" onclick="ckOne4(this)">
						</td>
						<td>${ol.getOrderName()}</td>
						<td>${ol.getOrderTel()}</td>
						<td>${ol.getMemo()}</td>
						</c:if>
					</tr>
					
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				</form>
				
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>